package com.winter.service;

import com.winter.mapper.BannerMapper;
import com.winter.model.Banner;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannreService {

    @Autowired
    private BannerMapper bannerMapper;

    public List<Banner> bannreList(String type) {
        List<Banner> banners = bannerMapper.queryType(type);
        return banners;
    }
}
